﻿@{
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.Title = "服务器基本情况";
}

<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
                        <div class="widget-box">
	                        <div class="widget-title">
		                        <span class="icon">
			                        <i class="icon-th"></i>
		                        </span>
		                        <h5>Static table</h5>
	                        </div>
	                        <div class="widget-content nopadding">
		                        <table class="table table-bordered table-striped">
                                    <tbody>
		                            <tr>
			                            <td>计算机名：</td>
			                            <td>@Environment.MachineName   </td>
		                            </tr>
                                    <tr>
			                            <td>当前域名：</td>
			                            <td> @HttpContext.Current.Request.Url.Host   </td>
		                            </tr>
                                    <tr>
			                            <td>操作系统：</td>
			                            <td> @Environment.OSVersion  </td>
		                            </tr>
                                     <tr>
			                            <td>系统内存：</td>
			                            <td> @Environment.SystemPageSize M </td>
		                            </tr>
                                    <tr>
			                            <td>.NET版本： </td>
			                            <td>@Environment.Version.Major . @Environment.Version.Minor (内部版本号 ：@Environment.Version.Build .@Environment.Version.Revision)<br />
                                        
                                        </td>
		                            </tr>
                                    <tr>
			                            <td> 启动到现在已运行：  </td>
			                            <td>@((Environment.TickCount / 0x3e8) / 60)  分钟
                                        </td>
		                            </tr>
                                    <tr>
			                            <td>当前系统用户名：   </td>
			                            <td>@Environment.UserName
                                        </td>
		                            </tr>
                                    <tr>
			                            <td>  CPU 数量：  </td>
			                            <td>@Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS").ToString()
                                        </td>
		                            </tr>
                                    <tr>
			                            <td>CPU类型：  </td>
			                            <td>@Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER").ToString()
                                        </td>
		                            </tr>
                                    <tr>
			                            <td>ASP.NET所站内存：   </td>
			                            <td>@(((Double)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1048576).ToString("N2")) M
                                        </td>
		                            </tr>
                                    <tr>
			                            <td>ASP.NET所占CPU：  </td>
			                            <td>@(((TimeSpan)System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime).TotalSeconds.ToString("N0"))
                                        </td>
		                            </tr>
            	                        
		                        </tbody>
	                        </table>							
                        </div>
                        </div>
                    </div>
                </div>
    </div>